﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var auditData = Jxstar.findComboData('audit');
	var moneytypeData = Jxstar.findComboData('moneytype');
	var authtypeData = Jxstar.findComboData('authtype');

	var cols = [
	{col:{header:'项目编号', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__project_code',type:'string'}},
	{col:{header:'记录状态', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'pur_one_chk__auditing',type:'string'}},
	{col:{header:'项目名称', width:254, sortable:true}, field:{name:'pur_one_chk__project_name',type:'string'}},
	{col:{header:'项目类别', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: moneytypeData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: moneytypeData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < moneytypeData.length; i++) {
				if (moneytypeData[i][0] == value)
					return moneytypeData[i][1];
			}
		}}, field:{name:'pur_one_chk__money_type',type:'string'}},
	{col:{header:'授权形式', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: authtypeData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: authtypeData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < authtypeData.length; i++) {
				if (authtypeData[i][0] == value)
					return authtypeData[i][1];
			}
		}}, field:{name:'pur_one_chk__auth_type',type:'string'}},
	{col:{header:'预算金额(万元)', width:105, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'pur_one_chk__project_money',type:'float'}},
	{col:{header:'实施单位', width:100, sortable:true}, field:{name:'pur_one_chk__dept_name',type:'string'}},
	{col:{header:'主管部门', width:100, sortable:true}, field:{name:'pur_one_chk__done_deptname',type:'string'}},
	{col:{header:'项目批复文号', width:100, sortable:true}, field:{name:'pur_one_chk__check_fileno',type:'string'}},
	{col:{header:'项目批复名称', width:100, sortable:true}, field:{name:'pur_one_chk__check_name',type:'string'}},
	{col:{header:'项目主要内容（含实施周期及概算造价等）', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__project_content',type:'string'}},
	{col:{header:'项目负责人', width:100, sortable:true}, field:{name:'pur_one_chk__project_user',type:'string'}},
	{col:{header:'申请人', width:100, sortable:true}, field:{name:'pur_one_chk__apply_user',type:'string'}},
	{col:{header:'申请日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'pur_one_chk__apply_date',type:'date'}},
	{col:{header:'拟邀请供应商名单', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__provider_names',type:'string'}},
	{col:{header:'邀请理由', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__invite_cause',type:'string'}},
	{col:{header:'谈判小组(人数、专业、产生办法)', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__teamdet_content',type:'string'}},
	{col:{header:'采购单号', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__apply_code',type:'string'}},
	{col:{header:'投资计划编号', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__plan_code',type:'string'}},
	{col:{header:'采购单ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__apply_id',type:'string'}},
	{col:{header:'实施单位ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__dept_id',type:'string'}},
	{col:{header:'投资计划ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__plan_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__one_chkid',type:'string'}},
	{col:{header:'项目负责人ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__project_userid',type:'string'}},
	{col:{header:'主管部门ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__done_deptid',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__project_id',type:'string'}},
	{col:{header:'申请人ID', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__apply_userid',type:'string'}},
	{col:{header:'价格确定依据', width:100, sortable:true, hidden:true}, field:{name:'pur_one_chk__price_basis',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'pur_one_chk'
	};
	
	
		
	return new Jxstar.GridNode(config);
}